﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ladrame.Data.Base;

namespace Ladrame.Data
{
    public abstract class RepositoryBase<T> : IRepository where T : new()
    {
        #region Singleton
        private static T _current;
        public static T Current
        {
            get 
            {
                if (_current == null)
                    _current = new T();

                return new T();
            }
        }
        #endregion

        public virtual Core.Entities.Base.EntityBase Get(int ID)
        {
            throw new NotImplementedException();
        }

        public virtual IEnumerable<Core.Entities.Base.EntityBase> GetAll()
        {
            throw new NotImplementedException();
        }

        public virtual void Add(Core.Entities.Base.EntityBase entity)
        {
            throw new NotImplementedException();
        }

        public virtual void Update(Core.Entities.Base.EntityBase entity)
        {
            throw new NotImplementedException();
        }

        public virtual void Delete(int ID)
        {
            throw new NotImplementedException();
        }
    }
}
